package org.example.test.service.impl;

import org.example.test.entity.Useradmin;
import org.example.test.mapper.AdminMapper;
import org.example.test.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Useradmin login(Useradmin useradmin) {
        return adminMapper.login(useradmin);
    }

    @Override
    public int register(Useradmin useradmin) {
        return adminMapper.register(useradmin);
    }
}
